//
//  NotificationViewModel.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/1.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "NotificationViewModel.h"
#import "NotifacationTableViewCell.h"

@interface NotificationViewModel ()<UITableViewDelegate,UITableViewDataSource>


@end

@implementation NotificationViewModel

-(instancetype)initWithViewToViewModel:(UITableView *)tableView theSuperView:(UIView *)superView{
    if (self = [super initWithViewToViewModel:tableView theSuperView:superView]) {
        superView.backgroundColor = [UIColor whiteColor];
        tableView.backgroundColor = [UIColor colorWithHexString:@"#F2F2F2"];
        tableView.mj_footer.hidden = YES;
        tableView.mj_header.hidden = YES;
        tableView.delegate = self;
        tableView.dataSource = self;
        tableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, kHeightProportion_In_iPhoneTriploid(10))];
        tableView.rowHeight = kHeightProportion_In_iPhoneTriploid(66);
        [superView addSubview:tableView];
    }
    return self;
}

#pragma mark -- UITableViewDelegate,UITableViewDataSource>
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 1;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    static NSString * markStr = @"NotifacationTableViewCell";
    NotifacationTableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:markStr];
    if (cell == nil) {
        cell = [[NotifacationTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:markStr theCellType:CellListType_Noyifition];
    }
    cell.Block_SwitchType = ^(BOOL switchBool) {
        
    };
    return cell;
}




@end
